<template>
  <div>
    <div class="search-line">
      <label>姓名</label>
      <input style="margin-left: 10px;" placeholder="请输入姓名">
      <label style="margin-left: 30px;">证件号码</label>
      <input style="margin-left: 10px;" placeholder="请输入证件号码">
      <el-button type="primary" style="margin-left: 20px;">搜索</el-button>
    </div>
    <div class="list">
      <el-table stripe :data="tableData" style="width: 1250px">
        <el-table-column prop="no" label="序号" width="80">
        </el-table-column>
        <el-table-column prop="idNumber" label="证件号码" width="230">
        </el-table-column>
        <el-table-column prop="phone" label="联系方式" width="200">
        </el-table-column>
        <!-- <el-table-column prop="address" label="地址">
        </el-table-column> -->
        <el-table-column label="地址">
          <el-table-column prop="province" label="省份" width="120">
          </el-table-column>
          <el-table-column prop="city" label="市区" width="120">
          </el-table-column>
          <el-table-column prop="address" label="地址" width="100">
          </el-table-column>
        </el-table-column>
        <el-table-column prop="upTime" label="上报时间" width="200">
        </el-table-column>
        <el-table-column label="操作" width="200">
          <template slot-scope="scope" style="display: flex;">
            <el-button size="mini">编辑</el-button>
            <el-button size="mini" type="danger">删除</el-button>
          </template>
        </el-table-column>
      </el-table>

      <div class="block" style="margin-top: 20px;">
        <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage4"
          :page-sizes="[100, 200, 300, 400]" :page-size="100" layout="total, sizes, prev, pager, next, jumper"
          :total="400">
        </el-pagination>
      </div>
    </div>

  </div>
</template>
 
<script>
import { mapMutations } from 'vuex'

export default {
  name: 'Login',
  data() {
    return {
      username: '',
      password: '',
      tableData: [{
        "no": "1",
        "idNumber": "893580235129058230580",
        "phone": "12323278478",
        "province": '江西',
        'city': '上饶',
        "address": '武汉市',
        "upTime": '2023-10-13 14:47',
      }, {
        "no": "1",
        "idNumber": "893580235129058230580",
        "phone": "12323278478",
        "province": '浙江',
        'city': '杭州',
        "address": '武汉市',
        "upTime": '2023-10-13 14:47',
      }, {
        "no": "1",
        "idNumber": "893580235129058230580",
        "phone": "12323278478",
        "province": '湖北',
        'city': '武汉',
        "address": '武汉市',
        "upTime": '2023-10-13 14:47',
      }],
    }
  },
  methods: {
    handleEdit(index, row) {
      console.log(index, row);
    },
    handleDelete(index, row) {
      console.log(index, row);
    }
  },
}
</script>

<style>
.search-line {
  display: flex;
  align-items: center;
}

.list {
  width: 100%;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
}
</style>